/**
 * Created by lvlq on 16/4/24.
 */
var Sequelize = require("sequelize");
var sequelize = Util("sequelize");

var log = sequelize.define("log", {
    pid: {
        type: Sequelize.INTEGER,
        field: "pid",
        allowNull: false,
        defaultValue: 0,
        comment: "奖品id"
    },
    openid: {
        type: Sequelize.STRING,
        field: "openid",
        allowNull: false,
        defaultValue: "",
        comment: "点赞openid"
    },
    q_openid: {
        type: Sequelize.STRING,
        field: "q_openid",
        allowNull: false,
        defaultValue: "",
        comment: "被点赞openid"
    }
}, {
    comment: "点赞log表",
    scopes: {}
});


module.exports = log;